
public class LED extends Device {
	
	/****************************************
	 * Attributes
	 ****************************************/
	public static char RED = 'R';
	public static char GREEN = 'G';
	public static char BLUE = 'B';

	/****************************************
	 * Constructor
	 ****************************************/
	public LED(int address, iCATch316 iCatch) {
		super(address, iCatch);
	}
	
	// Methods
	/****************************************
	 * Turn LED on
	 ****************************************/
	public void on(char color) {
		System.out.println("LED on, input is " + color);
		iCatch.colorLedOn(address, color);
	}
	
	/****************************************
	 * Turn LED off
	 ****************************************/
	public void off(char color) {
		iCatch.colorLedOff(address, color);
	}
	
	/****************************************
	 * Flash LED
	 ****************************************/
	public void flash(char color) {
		on(color);
		iCatch.sleep(500);
		off(color);
	}
}
